<?php $this->widget('zii.widgets.CListView', array(
    'id'=>'type-'.$type,
    'dataProvider'=>$dataProvider,
    'itemsTagName'=>'ul',
    'itemView'=>'_list_item',
    'template'=>"{items}\n{pager}",
    'htmlOptions'=>array(
        'class'=>'templateList',
    ),
    'afterAjaxUpdate'=>'js:function(){jQuery.fn.initFancybox_'.$type.'();}',
));

$script = "
jQuery.fn.initFancybox_{$type} = function(){
    jQuery('#type-{$type} .items .info').fancybox({
        'width'             : 450,
        'height'            : 400,
        'autoScale'         : false,
        'titleShow'         : false,
        'transitionIn'      : 'none',
        'transitionOut'     : 'none',
        'type'              : 'iframe'
    });
}
jQuery.fn.initFancybox_{$type}();
";
Yii::app()->getClientScript()->registerScript(__CLASS__.'#Info'.$type, $script);